﻿
/**
 * Masque Url Library 0.0.2
 * Copyright(c) 2008, 青岛领创网络科技有限公司
 * @author Lookingon Team
 */
if (Masque && !Masque.URL) {
    Masque.URL = {
        noAnchorTopLocation: function(){
            return window.location.href.replace(window.location.hash, '')
        },
        getQueryString: function(name){
            var url;
            if (arguments.length > 1) {
                url = arguments[1];
            }
            else {
                url = location + "";
            }
            var reg = new RegExp("(^|&|\\?)" + name + "=([^&]*)(&|$)", 'i');
            var r = url.match(reg);
            if (r != null) 
                return unescape(r[2]);
            return null;
            
            
        }
        
        
    };
}
